<div class="bjui-pageContent">
    <form action="${wwwroot}/admin/templatetype/save" id="editForm" data-toggle="validate" data-alertmsg="false" reloadNavtab="true">
        <input type="hidden" name="id" value="${(templateType.id)!}" />
        <div class="pageFormContent" data-layout-h="0">
            <table class="table table-condensed table-hover" width="100%">
                <tbody>
                    <tr>
                        <td>
                            <label for="typeName" class="control-label x85">类型名称：</label>
                            <input type="text" name="typeName" id="typeName" value="${(templateType.typeName)!}" data-rule="required" >
                        </td>
                        <td>
                            <label for="note" class="control-label x85">备注：</label>
                            <input type="text" name="note" id="note" value="${(templateType.note)!}"  >
                        </td>
                        <td>
                            <label for="pid" class="control-label x85">父id：</label>
                            <#--<input type="text" name="pid" id="pid" value="${(templateType.pid)!}"  >-->
                            <select name="pid" id="pid" data-toggle="selectpicker">
                                <option value="root" >---</option>
                            <#list topTypes as topType>
                                <option value="${(topType.id)!}" <#if templateType.pid??&templateType.id=topType.id>selected</#if>>${(topType.typeName)!}</option>
                            </#list>
                            </select>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </form>
</div>
<div class="bjui-pageFooter" >
    <ul>
        <li><button type="button" class="btn btn-close" data-icon="close">取消</button></li>
        <li><button type="submit" class="btn btn-success" data-icon="save">保存</button></li>
    </ul>
</div>
